package at.ttasat;

import java.util.Arrays;

public class Main {
	public static void main(String[] args) throws Throwable {
		if (args.length == 0) {
			System.out.println("Modes = {CreateBase, Compare, CompareFiles, DisplayResult, CreateCNFFile, CreateFolderTable}");
			return;
		}

		String[] localArgs = Arrays.copyOfRange(args, 1, args.length);
		String mode = args[0];
		if (mode.equals("CreateBase")) {
			CreateBase.main(localArgs);
		} else if (mode.equals("Compare")) {
			Compare.main(localArgs);
		} else if (mode.equals("CompareFiles")) {
			CompareFiles.main(localArgs);
		} else if (mode.equals("DisplayResult")) {
			DisplayResult.main(localArgs);
		} else if (mode.equals("CreateCNFFile")) {
			CreateCNFFile.main(localArgs);
		} else if (mode.equals("CreateFolderTable")) {
			CreateFolderTable.main(localArgs);
		} else {
			System.out.println("Unknown mode");
		}
	}
}
